package top.riske.imagebed.mapper;

import org.apache.ibatis.annotations.Mapper;
import top.riske.imagebed.entity.CFile;

/**
 * created by vital on 2025/3/5 上午8:40
 */
@Mapper
public interface FileMapper {

    /**
     * 根据文件hash查询文件
     */
    CFile selectByHash(String fileHash);

    /**
     * 插入文件信息
     * @param file
     * @return
     */
    int insert(CFile file);

}
